import request from '@/utils/request';
// 新增用户模特地址
export function addUserModelAddressApi(data) {
  return request({
    url: '/admin/platform/user/model/url/save',
    method: 'post',
    data,
  });
}

// 获取用户模特地址列表
export function getUserModelAddressListApi(data) {
  return request({
    url: '/admin/platform/user/model/url/list',
    method: 'post',
    data,
  });
}

// 修改用户模特地址
export function updateUserModelAddressApi(data) {
  return request({
    url: `/admin/platform/user/model/url/update`,
    method: 'post',
    data,
  });
}

// 获取背景列表
export function getBackgroundListApi(data) {
  return request({
    url: '/admin/platform/ai-background/list',
    method: 'get',
    params: data,
  });
}

// 新增背景
export function addBackgroundApi(data) {
  return request({
    url: '/admin/platform/ai-background/save',
    method: 'post',
    data,
  });
}

// 修改背景
export function updateBackgroundApi(data) {
  return request({
    url: '/admin/platform/ai-background/update',
    method: 'post',
    data,
  });
}

// 删除背景
export function deleteBackgroundApi(data) {
  return request({
    url: '/admin/platform/ai-background/delete',
    method: 'get',
    params: data,
  });
}
//详情
export function getBackgroundDetailApi(data) {
  return request({
    url: '/admin/platform/ai-background/info',
    method: 'get',
    params: data,
  });
}
//ai试衣记录/api/admin/platform/ai-fitting-record/list
export function getAiFittingRecordListApi(data) {
  return request({
    url: '/admin/platform/ai-fitting-record/list',
    method: 'get',
    params: data,
  });
}

